package cn.cloud9;

import java.util.Random;

public class Demo4ExamReward {
    /**
     * https://www.bilibili.com/video/BV18J411W7cE?p=36
     * 考试奖励案例
     * @param args
     */
    public static void main(String[] args) {
        int score = new Random().nextInt(50) + 50;

        if (100 >= score && score >= 90) {
            System.out.println("奖励万元主机一台");
        }
        else if (90 > score && score >= 80) {
            System.out.println("奖励IPhone13ProMax一个");
        }
        else if (80 > score && score >= 70) {
            System.out.println("奖励吃麦当劳一次");
        }
        else {
            System.out.println("奖励大嘴巴子一个");
        }
    }
}
